package com.yy.wga.user.feign.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 请求用户等级修改信息
 *
 * @author TongSN
 * @since 2025/2/18 17:18
 */
@Data
public class UserUpdateLevelReq {
    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    /**
     * 用户等级
     */
    @Min(value = 1, message = "等级非法")
    @Max(value = 2, message = "等级非法")
    @NotNull(message = "等级不能为空")
    private Integer grade;

    /**
     * 用户级别
     */
    @NotNull(message = "级别不能为空")
    @Min(value = 1, message = "等级非法")
    @Max(value = 5, message = "等级非法")
    private Integer level;
}

